package com.example;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/springboot")
public class HelloController {
        
        @RequestMapping(value = "/{name}", method = RequestMethod.GET)
        public String sayWorld(@PathVariable("name") String name) {
            return "Hello " + name;
        }
}
